import { reactive } from "vue"

export const useGlobalTemplate=()=>{
	const page = reactive({
		description: "", 
		backgroundColor: "#EFF0F0", 
		backgroundImage: "http://test.yudao.iocoder.cn/20250822/b530150a466c8cda0a4cd5b29e2c8d11_1755867190255.png"
	})
	let navigationBar = reactive({
		"title": "页面标题",
			"description": "",
			"navBarHeight": 5,
			"backgroundColor": "#fff",
			"backgroundImage": "",
			"styleType": "normal",
			"alwaysShow": true,
			"showGoBack": true,
			"_local": {
				"previewMp": true,
				"previewOther": false
			},
		"mpCells": [
			{
			"left": 0,
			"right": 1,
			"top": 0,
			"bottom": 1,
			"height": 1,
			"width": 1,
			"type": "image",
			"textColor": "#111111",
			"imgUrl": "http://test.yudao.iocoder.cn/b029fcf7853042fccd02d78985047081cdd229afbfa2f0f9014dfe84b923d50b.png",
			"url": "/pages/chat/index"
		}, {
			"left": 1,
			"right": 2,
			"top": 0,
			"bottom": 1,
			"height": 1,
			"width": 1,
			"type": "image",
			"textColor": "#111111",
			"text": "",
			"url": "/pages/commission/goods",
			"imgUrl": "http://test.yudao.iocoder.cn/32c3ba8d2ff3c329047a5a5823e96390cb0de19c735cd27c208896284e0b3fbb.png"
		}],
		"otherCells": [{
			"left": 0,
			"right": 1,
			"top": 0,
			"bottom": 1,
			"height": 1,
			"width": 1,
			"type": "image",
			"textColor": "#111111",
			"imgUrl": "http://test.yudao.iocoder.cn/b029fcf7853042fccd02d78985047081cdd229afbfa2f0f9014dfe84b923d50b.png",
			"url": "/pages/chat/index"
		}, {
			"left": 1,
			"right": 2,
			"top": 0,
			"bottom": 1,
			"height": 1,
			"width": 1,
			"type": "image",
			"textColor": "#111111",
			"imgUrl": "http://test.yudao.iocoder.cn/32c3ba8d2ff3c329047a5a5823e96390cb0de19c735cd27c208896284e0b3fbb.png",
			"url": "/pages/commission/goods"
		}],
		"bgType": "color"
	})
	return { page, navigationBar }
}